import request from '@/utils/request'
/**
 * 实现登录功能
 * @param {mobile,password} data 
 */
// export function login(data){
//   return request({
//     url:'/api/sys/login',
//     method:'post',
//     data
//   })
// }
export const login=data =>request.post('/sys/login',data) 
export function getInfo() {
  return request({
    url:`/sys/profile`,
    method:'post',
  })
}
export function getUserByIdDetail(id) {
  return request({
    url:`/sys/user/${id}`,
  })
}
export function logout() {
}